import xadmin
from trusteeship.models import Trusteeship, UserEverydayStudy
from xadmin import views


# 托管信息表
class TrusteeshipXadmin(object):
    list_display = ['category', 'teacher_deliver', 'tutor', 'discipline_teacher', 'pych_teacher',
                    'dietary', 'arrive_time_noon', 'leave_time_noon', 'arrive_time_afternoon', 'leave_time_afternoon',
                    'tutor_subject', 'mistake', 'discipline_outcome', 'add_time']
    model_icon = 'fa fa-child'


# 用户每日学习情况
class UserEverydayStudyXadmin(object):
    list_display = ['study_course', 'study_schedule', 'teacher_feedback', 'parent_feedback', 'add_time']
    model_icon = 'fa fa-paw'


xadmin.site.register(Trusteeship, TrusteeshipXadmin)
xadmin.site.register(UserEverydayStudy, UserEverydayStudyXadmin)
